//
//  Person2.m
//  2、Person
//
//  Created by student on 16/3/13.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "Person2.h"
#import "Dog2.h"


@implementation Person2


-(instancetype)init{
    if (self=[super init]) {
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(feed) name:@"veryHungry" object:nil];
    }
    return self;
}

-(void)feed{

    NSLog(@"喂下%@狗粮",self.myDog.fullName);
    self.myDog.hungry +=50;
}


@end
